package com.sfy.test.demos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sfy.test.demos.domain.dto.UserLoginDTO;
import com.sfy.test.demos.domain.dto.UserRegisterDTO;
import com.sfy.test.demos.domain.po.User;
import com.sfy.test.demos.domain.query.UserPageQuery;
import com.sfy.test.demos.result.ResponseVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author novel
 * @since 2024-08-10
 */
public interface UserService extends IService<User> {

    /**
     * 注册方法
     * @param userRegisterDTO 注册信息
     * @return
     */
    ResponseVo register(UserRegisterDTO userRegisterDTO);

    ResponseVo login(UserLoginDTO userLoginDTO);

    /**
     * 分页查询
     * @param pageQuery 分页查询条件
     */
    ResponseVo queryUserPage(UserPageQuery pageQuery);
}

